package foodmaterial.entity;

//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

public class RolePermissionRelation implements Serializable {

    private static final long serialVersionUID = 277039935698132783L;

    //@JsonSerialize(using= ToStringSerializer.class)
    private Long id ;

    //@JsonSerialize(using= ToStringSerializer.class)
    private Long roleId ;

    //@JsonSerialize(using= ToStringSerializer.class)
    private Long permissionId ;

    public RolePermissionRelation() {
    }

    public RolePermissionRelation(Long id, Long roleId, Long permissionId) {
        this.id = id;
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Long permissionId) {
        this.permissionId = permissionId;
    }

    @Override
    public String toString() {
        return "RolePermissionRelation{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", permissionId=" + permissionId +
                '}';
    }
}
